package graphicUserInterface.NetworkInterfaces.screens;

import graphicUserInterface.NetworkInterfaces.NetworkTestWindow;
import graphicUserInterface.mainInterface.screens.CalibrationScreen;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;

public class NetWorkScreen extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5153486457153391559L;

	/* *********************************************************
	 * InnerClasses
	 * Summary : 
	 * 		-  
	 * ********************************************************* */
	private class GoToCalibration implements ActionListener{
		
		private NetworkTestWindow _netWorkFrame;
		
		public GoToCalibration(NetworkTestWindow window){
			_netWorkFrame = window;
		}

		@Override
		public void actionPerformed(ActionEvent e) {
			CalibrationScreen calib = new CalibrationScreen();
			_netWorkFrame.addAsMainScreen(calib);
		}
	}
	
	private class GoToSpectacle implements ActionListener{

		private NetworkTestWindow _netWorkFrame;
		
		public GoToSpectacle(NetworkTestWindow window){
			_netWorkFrame = window;
		}
		
		@Override
		public void actionPerformed(ActionEvent e) {
			
			
			FirstStep game = new FirstStep();
			
		}
		
	}
	/* *********************************************************
	 * End of InnerClasses
	 * ********************************************************* */

	
	
	
	/* *********************************************************
	 * Attributes
	 * ********************************************************* */
	private JButton _play;
	private JButton _watch;
	
	
	public NetWorkScreen(){
		_play = new JButton("Play HINB !");
		_watch = new JButton("Just Watch a game");
		NetworkTestWindow pappa = (NetworkTestWindow) this.getParent();
		_play.addActionListener(new GoToCalibration(pappa));
		_watch.addActionListener(new GoToSpectacle(pappa));
	}
}
